package linwen.wang.controller;

import linwen.wang.commom.ReturnVO;
import linwen.wang.pojo.User;
import linwen.wang.pojo.ValidationList;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName UserController
 * @Description TODO
 * @Author zero
 * @DATE 2023/8/2 8:16 AM
 * @Version 1.0
 */
@RestController
@RequestMapping("/user")
@Slf4j
public class UserController {
    @PostMapping
    public Object saveList(@RequestBody @Validated ValidationList<User> userList) {
        // 校验通过，才会执行业务逻辑处理
        return ReturnVO.buildReturnVO("success");
    }
}
